#define BID_MAX_CHANGES_PER_COMMIT      30
#define BID_MAX_COMMITS_PER_CONNECTION  100
#define BID_MAX_COMMIT_SIZE             1024

struct change{
    char type[1]; //A(dd) or M(odify)
    char file[128];
};
struct commit{
    int revision; //revision of commit
    char author[32]; //commit author
    char date[32];  // 2013-04-13 11:09:20 +0700
    struct change changes[BID_MAX_CHANGES_PER_COMMIT]; //list of changes
    int numberOfChanges;
    char message[512]; //commit message
};
struct fetch{
    struct commit commits[BID_MAX_COMMITS_PER_CONNECTION];
    int numberOfCommits;
};
struct repository{
    char url[128];
    char loginname[32];
    char password[32];
};
/*
 commit size = (1+128)*30 + 4+32+16+512 = 4434 ~ 4Kb
 */
struct fetch logFetch;
//struct commit commitsPerCon[BID_MAX_COMMITS_PER_CONNECTION];
//int commitIndexPerCon;
int latestRevision;
struct repository repositoryForLogFetch;
int svn_client_log_ios(int getLatestRev, int startRev, int endRev, const char *serverUrl);
